import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/style/reset.scss";

//引入轮播图,icon图标
import { Swiper, SwiperItem, Icon } from "@nutui/nutui";

// 引入组件库
import NutUI from "@nutui/nutui";
import "@nutui/nutui/dist/style.css";
// 引入组件
import pageHeaderCom from "./components/pageHeaderCom.vue";
import addressListCom from "./components/addressListCom.vue";

const app = createApp(App);

// 注册组件
//app.component('pageHeaderCom', pageHeaderCom);
app.component(pageHeaderCom.name, pageHeaderCom);
app.component(addressListCom.name, addressListCom);

//使用轮播图
app.use(store)
    .use(router)
    .use(NutUI)
    .use(Swiper)
    .use(SwiperItem)
    .use(Icon)
    .mount("#app");
